package com.geese.exception;

/**
 * 业务异常类
 * Created by huweiwei on 2017/3/20.
 */
public class BusinessException extends RuntimeException{
	private static final long serialVersionUID = -2070451095634768361L;
	private int code;

    public BusinessException(int code) {
        super(String.valueOf(code));
    	this.code = code;
    }

    public BusinessException(String msg) {
    	super(msg);
    }

    public BusinessException() {
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

}
